$(document).ready(function () {
    let date = new Date();
    let arr = [
        { id: 'Year', e: date.getFullYear() },
        { id: 'Month', e: (date.getMonth() + 1) },
        { id: 'Date', e: date.getDate() },
        { id: 'Hours', e: date.getHours() },
        { id: 'Minute', e: date.getMinutes() },
        { id: 'Second', e: date.getSeconds() }
    ]
    arr.forEach(item => document.getElementById(item.id).innerHTML = item.e )
    function Time() {
      let date = new Date();
      let H = date.getHours();
      let F = date.getMinutes();
      let S = date.getSeconds();
      if (H < 10) H = "0" + H
      if (F < 10) F = "0" + F
      if (S < 10) S = "0" + S
      document.getElementById('Hours').innerHTML = H;
      document.getElementById('Minute').innerHTML = F;
      document.getElementById('Second').innerHTML = S;
    }
    setInterval(Time, 1000);
});
